package com.kpijavatraining.module2.question;

import java.io.Serializable;
/**
 * Created with IntelliJ IDEA.
 * User: Yura
 * Date: 13.10.13
 * Time: 14:32
 */

/**
 * This class - container for question 
 */
public abstract class Question implements Serializable
{
    /**
	 * 
	 */
	private static final long serialVersionUID = -3752476552819153296L;
	/**
	 * 
	 */
	private String question;
    private int score;

	public Question(String question){
		this.question = question;
	}
	
	public abstract void answer(String answer);
	
	public void setScore(int score){
		this.score = score;
	}
	
	public int getScore(){
		return score;
	}
	
	public void clear(){
		setScore(0);
	}
	
	public String toString(){
		return question;
	}	
}
